package ar.uade.edu.fain.ad.server.dao.jpa;

import ar.uade.edu.fain.ad.server.business.MedioPago;
import ar.uade.edu.fain.ad.server.dao.MedioPagoDAO;
import ar.uade.edu.fain.ad.server.dao.entity.MedioPagoEntity;

public class MedioPagoJpaDAO 
		extends GenericJpaDAO<MedioPago, MedioPagoEntity, Long> 
		implements MedioPagoDAO {

	public MedioPagoJpaDAO() {
		super(MedioPagoEntity.class);
	}

	@Override
	protected MedioPagoEntity toEntity(MedioPago business) {
		return null;
	}

	@Override
	protected MedioPago toBusiness(MedioPagoEntity entity) {
		final MedioPago business = new MedioPago();
		business.setId(entity.getId());
		business.setDescripcion(entity.getDescripcion());
		business.setTipo(entity.getTipo());
		return business;
	}

}
